package com.jinsp.startup_library;

/**
 * Created by luoshuai on 2/25/22
 * <p>
 * 启动任务线程配置
 */
public interface Dispatcher {

    boolean isOnMainThread();       //是否运行在主线程

    boolean needMainThreadWait();   //是否需要主线程等待该任务完成

    void startWaiting();            //任务等待

    void notifyAndRunning();        //停止等待继续运行
}
